package com.dianrui.agent.adapter;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dianrui.agent.R;
import com.dianrui.agent.bean.Rank;

import java.util.List;

public class StationRankAdapters extends BaseQuickAdapter<Rank,BaseViewHolder> {

    public StationRankAdapters(int layoutResId, @Nullable List data) {
        super(layoutResId, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, Rank rank) {
        helper.setText(R.id.name,rank.name);
        helper.setText(R.id.allow_number,"最大容量:"+rank.allow_number);
        helper.setText(R.id.city_path,"当前车辆:"+rank.vehicle_number);
        helper.setText(R.id.borrow_day,"每周进站:"+rank.borrow_day);
        helper.setText(R.id.repay_day,"每周出站:"+rank.repay_day);
    }
}
